/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * isRequired(Bollean):是否必填
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动所关联的select的后段字段->bindFieldName
 */

//这个list的顺序不要随意修改，看看对应applyPay.vue中的 initFieldVal方法 有用到
const applyFiledList = [{
    type: 'text',
    label: '项目名称',
    colSpan: 12,
    labelWidth: "165px",
    isReadOnly: true,
    isRequired: false,
    bindFieldName: 'projectName',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '申请部门',
    colSpan: 12,
    isRequired: false,
    isReadOnly: true,
    bindFieldName: 'orgName',
    bindFieldVal: ""
  },
  {
    type: 'text',
    label: '申请人',
    isRequired: false,
    isReadOnly: true,
    colSpan: 12,
    bindFieldVal: "",
    bindFieldName: 'applyUserName',
  },
  {
    type: 'text',
    label: '合同名称',
    isRequired: false,
    isReadOnly: true,
    colSpan: 12,
    bindFieldVal: "",
    bindFieldName: 'contractName',
  },
  {
    type: 'text',
    inputType: "number",
    label: '剩余未付金额',
    isRequired: false,
    isReadOnly: true,
    unit: "元",
    colSpan: 12,
    bindFieldVal: "",
    bindFieldName: 'unpaidAmount',
  },
  {
    type: 'text',
    inputType: "number",
    label: '本次付款金额',
    isRequired: true,
    unit: "元",
    colSpan: 12,
    bindFieldVal: "",
    bindFieldName: 'paymentAmount',
  },
  {
    type: 'select',
    colSpan: 12,
    label: '事项',
    placeholder: '请选择',
    isRequired: true,
    optionList: [],
    keyName: 'chargeItemKey',
    valName: 'chargeItemAliasName',
    bindFieldName: 'chargeItem',
    bindFieldVal: ""
  },
  {
    type: 'select',
    colSpan: 12,
    label: '关联验收单',
    placeholder: '请选择',
    isRequired: false,
    optionList: [],
    keyName: 'primaryKey',
    valName: 'matterNameValue',
    bindFieldName: 'acceptanceKey',
    bindFieldVal: ""
  },
  {
    type: 'text',
    colSpan: 12,
    label: '收款人姓名',
    isRequired: false,
    bindFieldName: 'chargeUserName',
    bindFieldVal: ""
  },
  {
    type: 'text',
    colSpan: 12,
    label: '收款账户',
    isRequired: false,
    bindFieldName: 'chargeAccount',
    bindFieldVal: ""
  },
  {
    type: 'date',
    label: '付款所属年月',
    placeholder: '请选择',
    isRequired: true,
    colSpan: 12,
    bindFieldName: 'actualPaymentDate',
    inputType:"month"
  },
  {
    type: 'text',
    label: '说明',
    colSpan: 24,
    isRequired: false,
    bindFieldName: 'fundsDesc',
    bindFieldVal: ""
  },
]

export {
  applyFiledList
}
